﻿using System.Collections.Generic;

namespace LuatChoi
{
    public class Tot : QuanCo
    {
        public Tot()
        {
        }

        public Tot(Phe mau, BanCo banCo, int x, int y)
        {
            ToaDo = new Vector(x, y);
            Ban = banCo;
            Mau = mau;
        }

        public override void TinhToaDoAnhHuong()
        {
            ToaDoCoTheDiChuyen = new List<Vector>();
            ToaDoCoTheTanCong = new List<Vector>();

            switch (Mau)
            {
                case Phe.Den:
                    CheoXuongPhai(1, false, true);
                    CheoXuongTrai(1, false, true);
                    DiXuong(TrangThai == TrangThaiQuan.ChuaDi ? 2 : 1, true, false);
                    break;
                case Phe.Trang:
                    CheoLenPhai(1, false, true);
                    CheoLenTrai(1, false, true);
                    DiLen(TrangThai == TrangThaiQuan.ChuaDi ? 2 : 1, true, false);
                    break;
            }
        }
    }
}